class Track < ActiveRecord::Base
  has_many :records
  belongs_to :sametrack,:class_name => "Track",:foreign_key => "same_track"
  has_one :atrack,:class_name => "Track"

  def self.findPage offset,limit
    find(:all,:offset => offset,:limit => limit)
  end
end
